package cn.edu.dgut.css.sai.createspringbootprojectdemo.pojo;

import cn.edu.dgut.css.sai.createspringbootprojectdemo.pojo.Address;
import lombok.Data;

import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;

/**
 * @Author: leesk
 * @Description:
 * @Date: Create in 16:15 2020/10/11
 */
@Data
public class User {
    private Integer userId;

    private String username;

    private List<Address> addresses;


    private Calendar created = new GregorianCalendar();

    public User(Integer userId, String username, List<Address> addresses) {
        this.userId = userId;
        this.username = username;
        this.addresses = addresses;
    }
}
